package com.meilingcloud.biobank.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilingcloud.biobank.domain.Tube;
import com.meilingcloud.biobank.domain.dto.SampleConfirmLocation;

import java.util.List;

/**
 * 冻存管 Service接口
 *
 * @author chenl
 * @date 2021-03-05
 */
public interface ITubeService extends IService<Tube> {

    /**
     * 查询列表
     */
    List<Tube> queryList(Long containerId);

    /**
     * 确认样本位置
     */
    boolean confirmLocation(SampleConfirmLocation sampleConfirmLocation);

    /**
     * 清空样本位置
     */
    boolean clearLocation(SampleConfirmLocation sampleConfirmLocation);

    /**
     * 删除样本复份
     */
    boolean removeSampBackup(List<Long> sampBackupIds);
}
